package com.hospital.hospitalpatientservice.controller;


import com.hospital.hospitalpatientservice.entity.Area;
import com.hospital.hospitalpatientservice.service.IAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author handingfei
 * @since 2020-10-23
 */
@RestController
@RequestMapping("/area")
public class AreaController {

    @Autowired
    private IAreaService iAreaService;

    @RequestMapping("/findAll")
    public List<Area> list(){

        return iAreaService.findAll();
    }

}

